extends HSlider


# Called when the node enters the scene tree for the first time.
func _ready() -> void:
	value=AudioServer.get_bus_volume_linear(AudioServer.get_bus_index("Master"))*100
	


func _on_value_changed(valu: float) -> void:
	AudioServer.set_bus_volume_db(AudioServer.get_bus_index("Master"),linear_to_db(clamp(valu/100,0,1)))
